<template>
  <div class="service">
    <div class="left">
      <div class="left-top">
        <left-top name="全国各省售后统计" :list="list" />
      </div>
      <div class="leftbottom">
        <left-bottom name="产品售后统计" />
      </div>
    </div>
    <div class="center">center</div>
    <div class="right">
      <div class="right-top">
        <right-top name="今日服务" />
      </div>
      <div class="right-center">
        <rightTypeAnalysis name="服务类型分析" />
      </div>
    </div>
  </div>
</template>
<script>
import lefttop from "./components/leftTop.vue";
import leftbottom from "./components/leftBottom.vue";
import righttop from "./components/rightTop.vue";
import rightTypeAnalysis from "./components/rightTypeAnalysis.vue";
export default {
  name: "service",
  components: {
    leftTop: lefttop,
    leftBottom: leftbottom,
    rightTop: righttop,
    rightTypeAnalysis,
  },
  data() {
    return {
      list: [
        {
          name: "广东省",
          num: 3562,
          incomplete: 2562,
          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 500,

          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 500,

          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 500,
          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 500,
          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 500,
          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 500,
          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 500,
          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 500,
          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 500,
          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 2500,
          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 500,
          width: 0,
        },
        {
          name: "广东省",
          num: 3562,
          incomplete: 500,
          width: 0,
        },
      ],
    };
  },
  created() {},
  computed: {},
  mounted() {
    setTimeout(() => {
      this.list.forEach((item, index) => {
        item.width = (item.incomplete / item.num) * 100;
      });
    }, 500);
  },
  methods: {},
  watch: {},
};
</script>
<style lang="scss" scoped>
.service {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  overflow: hidden;
  .left {
    height: 100%;
    // background: red;
    flex: 1.5;
    padding: 0 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    .left-top {
      height: 55%;
    }
    .leftbottom {
      margin-top: 48px;
      height: 40%;
      flex: 1;
    }
  }
  .center {
    height: 100%;
    background: blue;
    flex: 3;
  }
  .right {
    height: 100%;
    flex: 1.5;
    padding: 0 36px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    .right-top{}
    .right-center{
      height: 296px;
      margin-top: 48px;
    }
  }
}
</style>
